package com.mindbook.vip.gawxchatinfo.service.impl.nostrum;

import com.mindbook.vip.gawxchatinfo.entity.nostrum.NostrumFunction;
import com.mindbook.vip.gawxchatinfo.mapper.nostrum.NostrumFunctionMapper;
import com.mindbook.vip.gawxchatinfo.service.nostrum.NostrumFunctionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NostrumFunctionServiceImpl implements NostrumFunctionService {

    @Autowired private NostrumFunctionMapper nostrumFunctionMapper;


    @Override
    public Integer removeByPrimaryKey(Integer id) {
        return nostrumFunctionMapper.deleteByPrimaryKey(id);
    }

    @Override
    public Integer add(NostrumFunction nostrumFunction) {
        return nostrumFunctionMapper.insertSelective(nostrumFunction);
    }

    @Override
    public Integer put(NostrumFunction nostrumFunction) {
        return nostrumFunctionMapper.updateByPrimaryKeySelective(nostrumFunction);
    }

    @Override
    public Integer addSelective(NostrumFunction nostrumFunction) {
        return null;
    }

    @Override
    public NostrumFunction findByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public Integer saveByPrimaryKeySelective(NostrumFunction nostrumFunction) {
        return null;
    }

    @Override
    public Integer saveByPrimaryKey(NostrumFunction nostrumFunction) {
        return null;
    }

    @Override
    public List<NostrumFunction> findAll() {
        return nostrumFunctionMapper.findAll();
    }
}
